class CreateQuestionReadLogs < ActiveRecord::Migration
  def change
    create_table :question_read_logs do |t|
      t.integer :remote_ip
      t.integer :question_id

      t.timestamps
    end
    add_index :question_read_logs,[:remote_ip,:question_id],unique: true
  end
end
